ExitApplication

Definition:

ExitApplication()

 

Description:

Close the current Digitise app.

 

Platforms:

All

 

Parameters:

none

 

Returns:

nothing

 

Notes:

This Method will actually close the Digitise app and not just put it into background. Any script lines within the calling Script after the call to ExitApplication will be ignored and will not be executed.

Before closing the app, any OnExit Event Script will be run. You can cancel the closedown by returning -1 from the OnExit Event's OnExit Function, i.e. by including the line

OnExit = -1

If the OnExit Script causes a dialog box to be displayed, e.g. by calling the MsgBox Method, the dialog box will need to be dealt with by the user before the Script will continue. If the app is in the background it will automatically be brought to the foreground.

If an asynchronous data transfer is in progress when this Method is called, i.e. a previous call to Synchronise has not completed, the transfer can be cancelled within the OnExit Script by calling the CancelTransaction Method. If you do not cancel the transfer explicitly, when the OnExit Event Script finishes the transaction will be cancelled. In either case, the OnAsyncCompletion Event will be triggered with a success value of "False".